Platform Explorer / Nuxeo Platform LTS 2017 9.10

Component org.nuxeo.ecm.platform.thumbnail.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.thumbnail.contrib">

  <extension target="org.nuxeo.ecm.platform.ui.web.rest.URLService"
    point="urlpatterns">
    <urlPattern name="downloadThumbnail" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>false</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>downloadThumbnail</codecName>
      <actionBinding>#{thumbnailManager.downloadThumbnail}</actionBinding>
      <documentViewBinding>
        #{restHelper.documentView}
      </documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.newDocumentView}
      </newDocumentViewBinding>
    </urlPattern>
  </extension>

  <extension
    target="org.nuxeo.ecm.platform.url.service.DocumentViewCodecService"
    point="codecs">
    <documentViewCodec name="downloadThumbnail"
      enabled="true" prefix="nxthumb"
      class="org.nuxeo.ecm.platform.url.codec.DocumentFileCodec" />
  </extension>

  <extension
    target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
    point="startURL">
    <startURLPattern>
      <patterns>
        <pattern>nxthumb/</pattern>
      </patterns>
    </startURLPattern>
  </extension>

</component>